package com.dingreading.cloud.soms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class StoreBooksDto implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date editTime;

    /**
     * 门店id
     */
    private Long storeId;

    /**
     * 分类id
     */
    private Long bookLabelId;

    /**
     * 分类
     */
    private String bookLabelName;

    /**
     * isbn
     */
    private String isbn;

    /**
     * 书名
     */
    private String bookName;

    private String bookNum;

    /**
     * 封面
     */
    private String img;

    /**
     * 作者
     */
    private String author;

    /**
     * 出版社
     */
    private String press;

    /**
     * 出版日期
     */
    private String pubDate;

    /**
     * 简介
     */
    private String synopsis;

    /**
     * 介绍
     */
    private String introduction;

    /**
     * 单价
     */
    private Double unitPrice;

    /**
     * 库存
     */
    private Integer stockCount;

    /**
     * 可借数量
     */
    private Integer borrowCount;

    /**
     * 状态
     * -1.下架 1.上架
     */
    private Integer status;

}
